package com.homework6;

public class Rectangle {
    private int length;
    private int wide;

    public Rectangle(int length, int wide) {
        this.length = length;
        this.wide = wide;
    }
    public Rectangle(){}

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getWide() {
        return wide;
    }

    public void setWide(int wide) {
        this.wide = wide;
    }

    public void counter(){
        System.out.println("面积是："+length*wide);
    }
}
